from gevent.wsgi import WSGIServer


class GeventServer:

    def run(self, app):
        print "gevent server on (%s %d)" % (self.host, self.port)
        address = "192.168.3.242", 3000
        server = WSGIServer(address, app)
        server.backlog = 256
        server.serve_forever()
